#include "xcashfactory.h"
#include "xcashnormal.h"
#include "xcashrebate.h"
//#include "xcashreturn.h"

XCashFactory::XCashFactory()
{
}

static XCashSuper* createCashAccept(QString type)
{
	XCashSuper* xCashSuper = NULL;
	switch (type)
	{
	case k_discount_0:
		qDebug() << __FUNCTION__ << " " << __LINE__;
		xCashSuper = new XCashNormal();	
		break;

	case k_discount_90:
		qDebug() << __FUNCTION__ << " " << __LINE__;
		xCashSuper = new XCashRebate(QString(k_discount_90));
		break;
	
	default:
		qDebug() << __FUNCTION__ << " " << __LINE__;
		break;
	} 
}
